package com.dk.service.impl;

import com.dk.mapper.RoleMapper;
import com.dk.pojo.Menu;
import com.dk.mapper.MenuMapper;
import com.dk.pojo.MenuRole;
import com.dk.pojo.User;
import com.dk.pojo.UserRole;
import com.dk.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2021-10-29
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {
        @Autowired
    private MenuMapper menuMapper;
    @Override
    public List<Menu> findAll(Long uid) {
         List<Menu> menus = menuMapper.selectByUserId(uid);
        return menus;
    }
}
